<div class="p10 bdr_logo" itemprop="AggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<meta itemprop="ratingValue" content="<?php if($ratingsArray[0]['count']!=0){ 
				$avgRat=$ratingsArray[0]['ratings_total']/$ratingsArray[0]['count']; $avgRat=number_format($avgRat, 1);
			}else{ $avgRat=0;
			} echo number_format($avgRat, 1); ?>" />
<meta itemprop="bestRating" content="5" />
<meta itemprop="ratingCount" content="<?php echo $ratingsArray[0]['count']; ?>" />
<span class="txts_pnk" style="padding-left:5px"><?php echo $storeName; ?>
- </span><span class="txts_blk">Retailer Rating</span>
<div class="w100" style="padding:5px 5px 0 5px">
<div class="left" style="width:165px;height:2px;background-color:#C31E3F"></div>
<div class="left" style="width:125px;height:2px;background-color:#484545"></div>
</div>
<div style="padding:5px 0 0 5px">
<div class="left txts_blk">
Curr. Rating:&nbsp;<span class="txts_pnk"><strong><?php if($ratingsArray[0]['count']!=0){ 
				$avgRat=$ratingsArray[0]['ratings_total']/$ratingsArray[0]['count']; $avgRat=number_format($avgRat, 1);
			}else{ $avgRat=0;
			} echo number_format($avgRat, 1); ?></strong>
</span>
</div>
<div class="right txts_blk" style="padding:0 10px 0 0">
Total Votes: <span class="txts_pnk"><?php echo $ratingsArray[0]['count']; ?>
</span>
</div>
</div>
<div class="w100" style="height:75px">
<?php if($rated){ ?>
<div class="left" style="height:75px">
<img id="1" style="margin:44px 5px 0 0" src="/public/images/<?php if($avgRat>0 && $avgRat<1){ echo 'h'; }elseif($avgRat<1){ echo 'u'; } ?>star1.png" />
</div>
<div class="left" style="height:75px">
<img id="2" style="margin:37px 5px 0 0" src="/public/images/<?php if($avgRat>1 && $avgRat<2){ echo 'h'; }elseif($avgRat<2){ echo 'u'; } ?>star2.png" />
</div>
<div class="left" style="height:75px">
<img id="3" style="margin:27px 5px 0 0" src="/public/images/<?php if($avgRat>2 && $avgRat<3){ echo 'h'; }elseif($avgRat<3){ echo 'u'; } ?>star3.png" />
</div>
<div class="left" style="height:75px">
<img id="4" style="margin:17px 5px 0 0" src="/public/images/<?php if($avgRat>3 && $avgRat<4){ echo 'h'; }elseif($avgRat<4){ echo 'u'; } ?>star4.png" />
</div>
<div class="left" style="height:75px">
<img id="5" style="margin-top:2px" src="/public/images/<?php if($avgRat>4 && $avgRat<5){ echo 'h'; }elseif($avgRat<5){ echo 'u'; } ?>star5.png" />
</div>
<? }else{ ?>
<div class="left" style="height:75px">
<img id="1" onmouseover="userRatings(this)" onclick="rateYourEndure(this,'<?php echo $store_id; ?>')" style="margin:44px 5px 0 0" src="/public/images/<?php if($avgRat>0 && $avgRat<1){ echo 'h'; }elseif($avgRat<1){ echo 'u'; } ?>star1.png" />
</div>
<div class="left" style="height:75px">
<img id="2" onmouseover="userRatings(this)" onclick="rateYourEndure(this,'<?php echo $store_id; ?>')" style="margin:37px 5px 0 0" src="/public/images/<?php if($avgRat>1 && $avgRat<2){ echo 'h'; }elseif($avgRat<2){ echo 'u'; } ?>star2.png" />
</div>
<div class="left" style="height:75px">
<img id="3" onmouseover="userRatings(this)" onclick="rateYourEndure(this,'<?php echo $store_id; ?>')" style="margin:27px 5px 0 0" src="/public/images/<?php if($avgRat>2 && $avgRat<3){ echo 'h'; }elseif($avgRat<3){ echo 'u'; } ?>star3.png" />
</div>
<div class="left" style="height:75px">
<img id="4" onmouseover="userRatings(this)" onclick="rateYourEndure(this,'<?php echo $store_id; ?>')" style="margin:17px 5px 0 0" src="/public/images/<?php if($avgRat>3 && $avgRat<4){ echo 'h'; }elseif($avgRat<4){ echo 'u'; } ?>star4.png" />
</div>
<div class="left" style="height:75px">
<img id="5" onmouseover="userRatings(this)" onclick="rateYourEndure(this,'<?php echo $store_id; ?>')" style="margin-top:2px" src="/public/images/<?php if($avgRat>4 && $avgRat<5){ echo 'h'; }elseif($avgRat<5){ echo 'u'; } ?>star5.png" />
</div>
<?php } ?>
</div>
</div>